package com.dadaguai.service;

import com.dadaguai.common.BusinessException;
import com.dadaguai.common.R;
import com.dadaguai.domain.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dadaguai.dto.UserInfoDto;

import javax.servlet.http.HttpSession;

/**
* @author 王半仙
* @description 针对表【user_info(用户信息)】的数据库操作Service
* @createDate 2023-10-20 11:28:40
*/
public interface UserInfoService extends IService<UserInfo> {


    R register(UserInfoDto user, HttpSession session) throws BusinessException;

    R loginCheck(UserInfoDto user, HttpSession session, String state);

    R changePassword(String email, String password, String code);

    /**
     * 修改用户信息
     * @param user 修改参数
     * @param session
     * @return
     */
    R setProfile(UserInfoDto user, HttpSession session);

    R getUserInfo(String id);
}
